package cn.jstars.datatocloud.modules.heart.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cn.jstars.datatocloud.modules.heart.dao.HeartMapper;
import cn.jstars.datatocloud.modules.monitor.entity.Toimachinestatus;

@Component
public class HeartService {

	@Autowired
	private HeartMapper heartMapper;

	/**
	 * 获取全部心跳数据
	 * 
	 * @return
	 */
	public List<Toimachinestatus> getHeartDatas() {
		return heartMapper.getHeartDatas();
	}

}
